Skip to content

Improvements to MotorSubsystem#46

Merged
kcooney merged 6 commits into
mainfrom
kcooney/motor-subsystem
Oct 3, 2025
Merged

Improvements to MotorSubsystem#46
kcooney merged 6 commits into
mainfrom
kcooney/motor-subsystem

Conversation

@kcooney
Copy link
Copy Markdown
Contributor

@kcooney kcooney commented Jul 26, 2025

  • Do not clamp output in disable()
  • Add setSetpointCommand()
  • Add clampOutput() protected method
  • Deprecate useOutput(double, double)
  • Remove setpoint field (instead, get from the controller)
  • Add missing @Override annotations
  • Mark many methods as final
  • Optionally publish to NetworkTables (Update MotorSubsystem to optionally publish to NetworkTables #47)

@kcooney kcooney force-pushed the kcooney/motor-subsystem branch 2 times, most recently from d089ee8 to 6c20c54 Compare July 26, 2025 02:09
Copy link
Copy Markdown
Collaborator

@cuttestkittensrule cuttestkittensrule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you deprecated starting position?

@kcooney kcooney force-pushed the kcooney/motor-subsystem branch from 5f133ce to ccac542 Compare August 25, 2025 02:54
@kcooney
Copy link
Copy Markdown
Contributor Author

kcooney commented Aug 25, 2025

Is there a reason you deprecated starting position?

Chatted off-line with @cuttestkittensrule. The MotorSubsystem constructor needs to set the set-point of the controller.

@kcooney kcooney force-pushed the kcooney/motor-subsystem branch 3 times, most recently from c5ad791 to 39b00fa Compare August 25, 2025 05:18
@kcooney
Copy link
Copy Markdown
Contributor Author

kcooney commented Aug 25, 2025

Is there a reason you deprecated starting position?

Chatted off-line with @cuttestkittensrule. The MotorSubsystem constructor needs to set the set-point of the controller.

Fixed. PTAL

@kcooney
Copy link
Copy Markdown
Contributor Author

kcooney commented Sep 14, 2025

@cuttestkittensrule friendly ping

@kcooney kcooney force-pushed the kcooney/motor-subsystem branch 7 times, most recently from f6a837b to 7f449ac Compare September 23, 2025 01:43
@kcooney kcooney changed the base branch from main to kcooney/get-applied-current September 23, 2025 01:44
Base automatically changed from kcooney/get-applied-current to main September 24, 2025 03:17
@kcooney kcooney force-pushed the kcooney/motor-subsystem branch 2 times, most recently from 6f5dacf to 631fd7d Compare September 27, 2025 22:09
Copy link
Copy Markdown
Collaborator

@cuttestkittensrule cuttestkittensrule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

- Add `setSetpointCommand()`
- Add `clampOutput()` protected method
- Add `useOutput(double)`
- Deprecate `useOutput(double, double)`
- Remove `setpoint` field (instead, get from the controller)
- Improve Javadoc
@kcooney kcooney force-pushed the kcooney/motor-subsystem branch from 631fd7d to ac89ca8 Compare October 3, 2025 18:48
@kcooney kcooney merged commit cfeea88 into main Oct 3, 2025
1 check passed
@kcooney kcooney deleted the kcooney/motor-subsystem branch October 4, 2025 00:22
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants